// 自动生成模板WmsWareOrderTaskDetail
package biz

import "github.com/go-kratos/kratos/v2/log"

// wmsWareOrderTaskDetail表 结构体  WmsWareOrderTaskDetail
type WmsWareOrderTaskDetail struct {
	Id         *int    `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                               //id
	SkuId      *int    `json:"skuId" form:"skuId" gorm:"comment:sku_id;column:sku_id;size:19;"`                            //sku_id
	SkuName    *string `json:"skuName" form:"skuName" gorm:"comment:sku_name;column:sku_name;size:255;"`                   //sku_name
	SkuNum     *int    `json:"skuNum" form:"skuNum" gorm:"comment:购买个数;column:sku_num;size:10;"`                           //购买个数
	TaskId     *int    `json:"taskId" form:"taskId" gorm:"comment:工作单id;column:task_id;size:19;"`                          //工作单id
	WareId     *int    `json:"wareId" form:"wareId" gorm:"comment:仓库id;column:ware_id;size:19;"`                           //仓库id
	LockStatus *int    `json:"lockStatus" form:"lockStatus" gorm:"comment:1-已锁定  2-已解锁  3-扣减;column:lock_status;size:10;"` //1-已锁定  2-已解锁  3-扣减
}

// TableName wmsWareOrderTaskDetail表 WmsWareOrderTaskDetail自定义表名 wms_ware_order_task_detail
func (WmsWareOrderTaskDetail) TableName() string {
	return "wms_ware_order_task_detail"
}

type WmsWareOrderTaskDetailRepo interface {
}

type WmsWareOrderTaskDetailUsecase struct {
	repo WmsWareOrderTaskDetailRepo
	log  *log.Helper
}

func NewWmsWareOrderTaskDetailUsecase(repo GreeterRepo, logger log.Logger) *WmsWareOrderTaskDetailUsecase {
	return &WmsWareOrderTaskDetailUsecase{repo: repo, log: log.NewHelper(logger)}
}
